using System;
using System.ComponentModel.DataAnnotations;

namespace ErpManager.WPF.Models
{
    public class OperationLog
    {
        [Key]
        public int LogId { get; set; }

        [Required]
        public string UserId { get; set; } = string.Empty;

        [Required]
        public string UserName { get; set; } = string.Empty;

        [Required]
        public string Operation { get; set; } = string.Empty;

        [Required]
        public string Module { get; set; } = string.Empty;

        [Required]
        public string Details { get; set; } = string.Empty;

        [Required]
        public DateTime OperationTime { get; set; }

        public string? IpAddress { get; set; }
    }
}
